package cn.iocoder.yudao.module.wine.api;

import cn.iocoder.yudao.module.wine.service.memberopenlog.MemberOpenLogService;
import cn.iocoder.yudao.module.wine.api.dto.*;
import cn.iocoder.yudao.module.wine.convert.memberopenlog.MemberOpenLogConvert;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.List;

/**
 * @author zyc
 * @createDate 2024/5/15 14:55
 */
@Service
@Validated
public class MemberOpenLogApiImpl implements MemberOpenLogApi{

    @Resource
    private MemberOpenLogService memberOpenLogService;

    @Override
    public List<MemberOpenLogRespDTO> getMemberOpenLogList(Collection<String> ids) {
        return MemberOpenLogConvert.INSTANCE.convertList2(memberOpenLogService.getMemberOpenLogList(ids));
    }

}
